package com.gl.portal.system.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.gl.portal.system.entity.SysRole;

public interface SysRoleRepository extends JpaRepository<SysRole, Long>, JpaSpecificationExecutor<SysRole> {

	SysRole findByRoleKey(String roleKey);

	SysRole findByRoleName(String roleName);

	List<SysRole> findByIdIn(List<Long> ids);

	List<SysRole> findByIsDeleted(Integer isDeleted);

	List<SysRole> findByIdInAndIsDeleted(List<Long> ids, Integer isDeleted);

}
